﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master.master" AutoEventWireup="true"
    CodeFile="default.aspx.cs" Inherits="_default" %>

<%@ Register TagName="TinTucDuLich" TagPrefix="TinTucDuLich" Src="~/control/tintuc/wuc_tintucdulich.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script type="text/javascript">

        function CountDownTimer(dt, id) {
            var end = new Date(dt);

            var _second = 1000;
            var _minute = _second * 60;
            var _hour = _minute * 60;
            var _day = _hour * 24;
            var timer;

            function showRemaining() {
                var now = new Date();
                var distance = end - now;
                if (distance < 0) {

                    clearInterval(timer);
                    $('#' + id).html('Hết hạn!'); ;

                    return;
                };

                var days = Math.floor(distance / _day);
                //var hours = Math.floor((distance % _day) / _hour);
                //var minutes = Math.floor((distance % _hour) / _minute);
                //var seconds = Math.floor((distance % _minute) / _second);

                $('#' + id).html(days + ' Ngày');
                //document.getElementById(id).innerHTML += hours + 'hrs ';
                //document.getElementById(id).innerHTML += minutes + 'mins ';
                //document.getElementById(id).innerHTML += seconds + 'secs';
            };

            timer = setInterval(showRemaining, 1000);
        };
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="div_first_box">
        <div class="div_slider">
            <div id="slider">
                <ul>
                    <%=HtmlWriteSlider() %>
                </ul>
            </div>
        </div>
        <div class="div_timkiem">
            <div class="div_titlebar">
                <p class="title">
                    Tìm kiếm</p>
            </div>
            <div style="position: relative; float: left; margin-top: 10px; font: bolder 13px Arial;">
                <asp:RadioButtonList ID="rbSearch" CssClass="style_radio" RepeatColumns="2" runat="server"
                    OnSelectedIndexChanged="ChangeOpt" AutoPostBack="True">
                    <asp:ListItem Text="Tour trong nước" Value="1" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="Tour nước ngoài" Value="2"></asp:ListItem>
                </asp:RadioButtonList>
            </div>
            <div style="position: relative; float: left; margin-top: 10px; padding-bottom: 10px;
                width: 100%; font: bolder 13px Arial; border-bottom: dotted 1px #127ccd;">
                <p style="position: relative; float: left; width: 90%; left: 20px; height: 28px;
                    line-height: 28px;">
                    Khởi hành
                   <asp:DropDownList runat="server" ID="selectKh"/>
                </p>
                <p style="position: relative; float: left; width: 90%; left: 20px; height: 28px;
                    line-height: 28px;">
                    Điểm đến
                    <asp:DropDownList runat="server" ID="selectDd"/>
                </p>
                <a style="position: relative; float: left; margin-top: 10px; left: 120px; width: 80px;
                    height: 30px; font: normal 13px Arial; line-height: 30px; color: #fff; text-align: center;
                    cursor: pointer; background: #127ccd;"><asp:ImageButton ID="ImageButton1" CssClass="timkiemtour" runat="server" ImageUrl="~/style/css/img/btn_TimKiem.png" OnClick="TimKiemClick"/></a>
            </div>
            <%--<div style="position: relative; float: left; margin-top: 10px; width: 100%;">
                <div style="position: relative; float: left; left: 20px; margin-right: 30px; width: 140px;">
                    <p style="position: relative; float: left; margin: 0px; width: 100%; height: 20px;
                        color: #013156; font-weight: bolder;">
                        Du lịch</p>
                    <a href="ymsgr:sendim?nguyentran_hybn" title="Chat với tôi qua Yahoo!Messenger">
                        <img alt="" src="http://opi.yahoo.com/online?u=nguyentran_hybn&amp;m=g&amp;t=1&amp;l=us"
                            border="0"></a> <a href="ymsgr:sendim?nguyentran_hybn" title="Chat với tôi qua Yahoo!Messenger">
                                <img alt="" src="http://opi.yahoo.com/online?u=nguyentran_hybn&amp;m=g&amp;t=1&amp;l=us"
                                    border="0"></a><br />
                    <a href="skype:meo.cool?call" title="Gọi tôi qua Skyper!">
                        <img src="style/css/img/skype_call.png" style="border: none;" width="100" alt="Skype Me™!"></a>
                </div>
                <div style="position: relative; float: left; width: 140px;">
                    <p style="position: relative; float: left; margin: 0px; width: 100%; height: 20px;
                        color: #013156; font-weight: bolder;">
                        Vé máy bay</p>
                    <a href="ymsgr:sendim?nguyentran_hybn" title="Chat với tôi qua Yahoo!Messenger">
                        <img alt="" src="http://opi.yahoo.com/online?u=nguyentran_hybn&amp;m=g&amp;t=1&amp;l=us"
                            border="0"></a> <a href="ymsgr:sendim?nguyentran_hybn" title="Chat với tôi qua Yahoo!Messenger">
                                <img alt="" src="http://opi.yahoo.com/online?u=nguyentran_hybn&amp;m=g&amp;t=1&amp;l=us"
                                    border="0"></a><br />
                    <a href="skype:meo.cool?call" title="Gọi tôi qua Skyper!">
                        <img src="style/css/img/skype_call.png" style="border: none;" width="100" alt="Skype Me™!"></a>
                </div>
            </div>--%>
            <div class="div_conten_suport_online">
                <div class="div_conten_suport_online_left">
                    <b>Du lịch</b>
                    <div class="hotrodulich">
                        <%=GetYahooDl()%>
                    </div>
                    <%=GetSkypeDl()%>
                </div>
                <div class="div_conten_suport_online_rigth">
                    <b>Vé máy bay</b>
                    <div class="hotrovemaybay">
                        <%=GetYahooVeMB()%>
                    </div>
                    <%=GetSkypeVeMB()%>
                </div>
                <div class="hotLine">
                    <%=GetHotLine()%>
                </div>
            </div>
        </div>
    </div>
    <div class="div_second_box">
        <%=HtmlWriteTourKhuyenMai() %>
    </div>
    <div class="div_second_box div_three_box">
        <div class="div_colume_trongnuoc">
            <div class="div_titlebar">
                <p class="p_tilebar_all">
                    Du lịch trong nước</p>
            </div>
            <%=HtmlWriteLoaiTour(TourTrongNuoc)%>
        </div>
        <div class="div_colume_trongnuoc div_colume_nuocngoai">
            <div class="div_titlebar">
                <p class="p_tilebar_all">
                    Du lịch nước ngoài</p>
            </div>
            <%=HtmlWriteLoaiTour(TourNuocNgoai)%>
        </div>
    </div>
    <div class="div_second_box div_four_box">
        <%=HtmlWriteVeMayBay() %>
    </div>
    <div class="div_second_box div_five_box">
        <TinTucDuLich:TinTucDuLich runat="server" ID="TinTucDuLich" />
        <div class="div_tintic_dulich div_video">
            <div class="div_titlebar">
                <p class="p_tilebar_all p_title_video">
                    Video</p>
            </div>
            <div class="body_video">
                <%-- <iframe width="310" height="230" src="http://www.youtube.com/embed/CIpxTMt2NbE?rel=0"
                    frameborder="0" allowfullscreen></iframe>--%>
                <%=video() %>
            </div>
        </div>
    </div>
    <%--<div class="div_second_box div_six_box">
        <!--<div class="div_box_dulich">
            <div class="div_titlebar">
                <p class="p_tilebar_all">
                    Kinh nghiệm du lịch</p>
            </div>
            <%=HtmlWriteTinTucThree(KinhNghiemDuLich) %>
        </div>
        <div class="div_box_dulich">
            <div class="div_titlebar">
                <p class="p_tilebar_all">
                    Ảnh đẹp du lịch</p>
            </div>
            <%=HtmlWriteTinTucThree(AnhDepDuLich) %>
        </div>
        <div class="div_box_dulich div_box_dulich_right">
            <div class="div_titlebar">
                <p class="p_tilebar_all">
                    Ẩm thực du lịch</p>
            </div>
            <%=HtmlWriteTinTucThree(AmThucDuLich) %>
        </div>-->
    </div>--%>
</asp:Content>
